// app.js
App({
  onLaunch() {
    // 展示本地存储能力
    const logs = wx.getStorageSync('logs') || []
    logs.unshift(Date.now())
    wx.setStorageSync('logs', logs)
    

    const accessToken = wx.getStorageSync('accessToken');
    if (accessToken) {
      this.globalData.accessToken = accessToken;
    }
  },
  globalData: {
    userInfo: null,
    accessToken: '' // 用于临时存储accessToken
  }
})
